import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'lib-flexible'   //rem布局
// import http from './service/ajax'
import fastclick from 'fastclick'
import VueScroller from 'vue-scroller'

Vue.use(VueScroller)
fastclick.attach(document.body) //解决移动端点击300ms延时

Vue.config.productionTip = false

// 引入mockjs
require('./mock/mock.js')

Vue.directive('focus', {
    // 当被绑定的元素插入到 DOM 中时……
    inserted: function (el) {
        // 聚焦元素
        el.focus()
    }
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
